<?php
// +----------------------------------------------------------------------
// | UserModel.class.php - MyPT
// +----------------------------------------------------------------------
// | Copyleft (c) 2010 By Asxzy All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Asxzy <asxzy@163.com>
// +----------------------------------------------------------------------
// 用户模型
class UserModel extends CommonModel {
	public $_validate	=	array(
		array('username','require','请输入用户名'),
		array('password','require','请输入密码'),
		array('repassword','password','确认密码不正确',0,'confirm'),
		array('verify','require','验证码必须！'),
		array('username','','用户名已经存在,请重新选择',0,'unique',3),
		);

	public $_auto = array(
		array('password','md5',self::MODEL_BOTH,'function'),
		array('create_time','get_time',1,'function'),
		);
}
?>